﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UserManagement.aspx.cs" Inherits="UserManagement" Title="用户管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <table style="width: 98%;" cellpadding="5px">
        <tr>
            <td align="right">
                <asp:Label ID="Label1" runat="server" Text="用户名："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label2" runat="server" Text="电话："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label3" runat="server" Text="电子邮件："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMail" runat="server" Width="216px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="eMailValidator" runat="server" ControlToValidate="txtMail"
                    ErrorMessage="*电子邮件格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label4" runat="server" Text="角色："></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpRole" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label5" runat="server" Text="状态："></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpUserStatus" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Label6" runat="server" Text="地址："></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" Rows="8" TextMode="MultiLine" Width="400px"
                    MaxLength="200"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnAdd" runat="server" Text="添 加" CssClass="NormalButtom" OnClick="btnAdd_Click" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="放 弃" CssClass="NormalButtom" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
